package chap8;
//*********************************************************************
//  test.java           Author:GK
//
//  测试本周错题。
//*********************************************************************
import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        int x;
        Scanner scan = new Scanner(System.in);
                x = scan.nextInt();

        if (x > 0)
            x++;
        if (x < 0)
            x--;
        else x = 0;
        System.out.println(x);
    }
}
